home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / COSEmulator / COSEmulator- SRC / headers / AlertDialog.h next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  693 b   |  39 lines  |  [TEXT/CWIE]

  1. #ifndef _AlertDialog_h_
  2. #define _AlertDialog_h_
  3.  
  4. #include "Window.h"
  5.  
  6. #define    kFatalAlert        0
  7. #define    kWarningAlert    1
  8.  
  9. class    AlertDialog : public Window
  10. {
  11. public:
  12.     AlertDialog( void );
  13.     
  14.     void    SetDialog( char type , char *message , Boolean center = true );
  15. // generic stuff
  16.     virtual    Boolean    Init( void );
  17.     
  18.     virtual    void    HandleMouseClick( Boolean down , point where );
  19.     virtual    void    HandleMouseMove( point where );
  20.     virtual    Boolean    PointInWindow( point where );
  21.  
  22.     virtual    Boolean    Front( void );    
  23.     virtual    void    SetFront( Boolean f );
  24.     
  25.     virtual    void    DrawToScreen( rect *where , Boolean backGround = false );
  26.  
  27. private:
  28.     
  29.     char    type;
  30.     char     warning[ 100 ];
  31.     
  32.     rect    ok;
  33.     rect    cancel;
  34.     
  35. };
  36.  
  37.  
  38.  
  39. #endif